home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Dialogs / Info.r < prev    next >
Encoding:
Text File  |  1997-02-13  |  19.4 KB  |  859 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Info.r
  3.  
  4.     Contains:    resources for Part Frame Info
  5.  
  6.     Owned by:    Ed Lai
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <11>     12/9/96    EL        1354755: need alert when part kind change
  13.                                     in InfoDialog fails.
  14.         <10>     9/18/96    TJ        1384389 Remove RSRC names in Non-Debug
  15.                                     Builds.
  16.          <9>     9/11/96    eeh        1386008: AG fix for 68K
  17.          <8>     9/10/96    eeh        1384356: remove dead code; 1386008:
  18.                                     AppleGuide support (incomplete)
  19.          <7>      9/4/96    EL        1306385: Remove user item that are used as
  20.                                     default button in dialog. 1285242: remove
  21.                                     ununsed CNTL.
  22.          <6>     7/10/96    RA        1363236: Cosemtic Document/PartInfo dlg
  23.                                     fixes
  24.          <5>      7/8/96    eeh        undo task 10008 (AppleGuide buttons)
  25.          <4>     6/25/96    eeh        1361733: shrink Settings… button
  26.          <3>     6/21/96    eeh        task 10008: add buttons etc. for AppleGuide
  27.          <2>     6/19/96    EL        1358681: Resource IDs are in the reserved
  28.                                     range. 1321655: latest dialog design from
  29.                                     the HI team.
  30.          <0>     6/7/96    eeh        first checked in (moved from ::Core:)
  31.  
  32.     To Do:
  33.     In Progress:
  34. */
  35.  
  36. #define SystemSevenOrBetter 1            // we want the extended types
  37. #define    SystemSevenOrLater    1            // Types.r uses this variable
  38.  
  39. #define oldTemp        //$$$$$ Needed to use old-style 'dctb' resource
  40. #include "Types.r"
  41. #undef oldTemp        //$$$$$ End of 'dctb' fix
  42.  
  43. #include "SysTypes.r"
  44.  
  45. #include "InfoDefs.h"
  46.  
  47. #ifndef _DLGDEFS_
  48. #include "DdgDefs.h"
  49. #endif
  50.  
  51. #define kPartInfoLabelRight        121
  52. #define kPartInfoDataItemLeft    123
  53. #define kPartInfoDataItemRight    309
  54. #define kPartInfoButtonTop        285
  55. #ifdef _APPLEGUIDE_READY_
  56. #define    kAGButtonWidth            16
  57. #else
  58. #define    kAGButtonWidth            0
  59. #endif
  60.  
  61. resource 'DLOG' (kPartInfoDlgID, purgeable) {
  62.     {0, 0, 315, 344},
  63.     movableDBoxProc,
  64.     invisible,
  65.     noGoAway,
  66.     0x0,
  67.     kPartInfoDlgID,
  68.     "Part Info",
  69.     alertPositionParentWindowScreen
  70. };
  71.  
  72. resource 'DITL' (kPartInfoDlgID, purgeable) {
  73.     {    /* array DITLarray: 37 elements */
  74.         /* [1] kPartInfoOKBtn */
  75.         {kPartInfoButtonTop, 271, kPartInfoButtonTop+20, 330},
  76.         Button {
  77.             enabled,
  78.             "OK"
  79.         },
  80.         /* [2] kPartInfoCancelBtn */
  81.         {kPartInfoButtonTop, 197, kPartInfoButtonTop+20, 258},
  82.         Button {
  83.             enabled,
  84.             "Cancel"
  85.         },
  86.         /* [3] kPartInfoSettingsButton */
  87.         {kPartInfoButtonTop, 20+kAGButtonWidth, kPartInfoButtonTop+20, 122/*+26*/},
  88.         Button {
  89.             enabled,
  90.             "Settings…"
  91.         },
  92.         /* [4] kPartInfoCommentsFld */
  93.         {233, 13, 272, kPartInfoDataItemRight+22 /*331*/},
  94.         StaticText {
  95.             disabled,
  96.             ""
  97.         },
  98.         /* [5] kPartInfoByFld */
  99.         {202, kPartInfoDataItemLeft, 214, kPartInfoDataItemRight},
  100.         UserItem {
  101.             enabled
  102.         },
  103.         /* [6] */
  104.         {202, 98, 214, kPartInfoLabelRight},
  105.         StaticText {
  106.             disabled,
  107.             "By:"
  108.         },
  109.         /* [7] kPartInfoModifiedFld */
  110.         {188, kPartInfoDataItemLeft, 200, kPartInfoDataItemRight},
  111.         StaticText {
  112.             disabled,
  113.             "^2, ^3"
  114.         },
  115.         /* [8] */
  116.         {188, 64, 200, kPartInfoLabelRight},
  117.         StaticText {
  118.             disabled,
  119.             "Modified:"
  120.         },
  121.         /* [9] kPartInfoCreatedFld */
  122.         {174, kPartInfoDataItemLeft, 186, kPartInfoDataItemRight},
  123.         StaticText {
  124.             disabled,
  125.             "^0, ^1"
  126.         },
  127.         /* [10] */
  128.         {174, 70, 186, kPartInfoLabelRight},
  129.         StaticText {
  130.             disabled,
  131.             "Created:"
  132.         },
  133.         /* [11] kPartInfoSizeFld */
  134.         {160, kPartInfoDataItemLeft, 172, kPartInfoDataItemRight},
  135.         StaticText {
  136.             disabled,
  137.             ""
  138.         },
  139.         /* [12] */
  140.         {160, 89, 172, kPartInfoLabelRight},
  141.         StaticText {
  142.             disabled,
  143.             "Size:"
  144.         },
  145.         /* [13] kPartInfoSep1 */
  146.         {155, 10, 156, kPartInfoDataItemRight+22 /*331*/},
  147.         UserItem {
  148.             disabled
  149.         },
  150.         /* [14] kPartInfoEditorPopup */
  151.         {132, 74, 148, kPartInfoDataItemRight+22-20 /*311*/},
  152.         Control {
  153.             enabled,
  154.             kPartInfoEditorCntl
  155.         },
  156.         /* [15] kPartInfoKindPopup */
  157.         {110, 83, 126, kPartInfoDataItemRight+22-20 /*311*/},
  158.         Control {
  159.             enabled,
  160.             kPartInfoKindCntl
  161.         },
  162.         /* [16] kPartInfoCategoryFld */
  163.         {90, kPartInfoDataItemLeft, 104, kPartInfoDataItemRight},
  164.         UserItem {
  165.             enabled
  166.         },
  167.         /* [17] */
  168.         {90, 63, 104, kPartInfoLabelRight},
  169.         StaticText {
  170.             disabled,
  171.             "Category:"
  172.         },
  173.         /* [18] kPartInfoSep2 */
  174.         {85, 10, 86, kPartInfoDataItemRight+22 /*331*/},
  175.         UserItem {
  176.             disabled
  177.         },
  178.         /* [19] kPartInfoShowLinksCheckbox */
  179.         {49, 234, 63, 309},
  180.         CheckBox {
  181.             enabled,
  182.             ""
  183.         },
  184.         /* [20] kPartInfoShowLinksText */
  185.         {50, 252, 63, 309},
  186.         StaticText {
  187.             enabled,
  188.             "Show Links"
  189.         },
  190.         /* [21] kPartInfoStationeryCheckbox */
  191.         {33, 234, 47, 309},
  192.         CheckBox {
  193.             enabled,
  194.             ""
  195.         },
  196.         /* [22] kPartInfoStationeryText */
  197.         {34, 252, 47, 309},
  198.         StaticText {
  199.             enabled,
  200.             "Stationery"
  201.         },
  202.         /* [23] kPartInfoActPartRadBtn */
  203.         {58, 120, 72, 205},
  204.         RadioButton {
  205.             enabled,
  206.             ""
  207.         },
  208.         /* [24]  kPartInfoSelPartRadBtn */
  209.         {58, 212, 72, 297},
  210.         RadioButton {
  211.             enabled,
  212.             ""
  213.         },
  214.         /* [25] kPartInfoViewAsPopup */
  215.         {35, 67, 51, 213},
  216.         Control {
  217.             enabled,
  218.             kPartInfoViewAsCntl
  219.         },
  220.         /* [26] kPartInfoNameEditFld */
  221.         {10, 124, 23, kPartInfoDataItemRight},
  222.         StaticText {
  223.             disabled,
  224.             ""
  225.         },
  226.         /* [27] */
  227.         {11, 83, 25, kPartInfoLabelRight /*was 118*/},
  228.         StaticText {
  229.             disabled,
  230.             "Name:"
  231.         },
  232.         /* [28] kPartInfoPartThumbnail */
  233.         {10, 20, 42, 52},
  234.         UserItem {
  235.             disabled
  236.         },
  237.         /* [29] kPartInfoIDFld */
  238.         {216, kPartInfoDataItemLeft, 228, kPartInfoDataItemRight},
  239.         StaticText {
  240.             disabled,
  241.             ""
  242.         },
  243.         /* [30] */
  244.         {216, 41, 228, kPartInfoLabelRight},
  245.         StaticText {
  246.             disabled,
  247.             "Scripting ID:"
  248.         },
  249.         /* [31] kPartInfoMemorySizeButton */
  250.         {kPartInfoButtonTop, 129, kPartInfoButtonTop+20, 191},
  251.         Button {
  252.             enabled,
  253.             "Size…"
  254.         },
  255.         /* [32] kPartInfoEditorLabel */
  256.         {132, 77, 132+16, kPartInfoLabelRight},
  257.         StaticText {
  258.             disabled,
  259.             "Editor:"
  260.         },
  261.         /* [33] kPartInfoNoEditorText */
  262.         {132, 75+50, 132+16, 75+50+200},
  263.         StaticText {
  264.             disabled,
  265.             "None for this Kind"
  266.         },
  267.         /* [34] kPartInfoBundledText */
  268.         {59, 68, 72, kPartInfoLabelRight},
  269.         StaticText {
  270.             disabled,
  271.             "Click to:"
  272.         },
  273.         /* [35] kPartInfoReadOnlyPict */
  274.         {64, 234, 79, 249},
  275.         Picture {
  276.             disabled,
  277.             kPartInfoReadOnlyPictID
  278.         },
  279.         /* [36] kPartInfoReadOnlyText */
  280.         {66, 251, 79, 307},
  281.         StaticText {
  282.             disabled,
  283.             "Read Only"
  284.         },
  285.         /* [37] kPartInfoActPartText */
  286.         {59, 138, 72, 205},
  287.         StaticText {
  288.             disabled,
  289.             "Activate Part"
  290.         },
  291.         /* [38] kPartInfoSelPartText */
  292.         {59, 230, 72, 297},
  293.         StaticText {
  294.             enabled,
  295.             "Select Part"
  296.         }
  297.         /* [39] */
  298. #ifdef _APPLEGUIDE_READY_
  299.         ,{kPartInfoButtonTop + 2, 10, kPartInfoButtonTop+14, 10+kAGButtonWidth},
  300.         Control {
  301.             enabled,
  302.             kAppleGuideButton
  303.         }
  304. #endif
  305.     }
  306. };
  307.  
  308. resource 'CNTL' (kPartInfoKindCntl, purgeable) {
  309.         /*{106, 106, 122, kPartInfoDataItemRight-10},*/
  310.         {110, 84, 126, kPartInfoDataItemRight+22-20},
  311.         popupTitleBold+popupTitleRightJust,
  312.         visible,
  313.         38,                    /* width of title in pixels     */
  314.         kPartInfoKindMenu,    /* resource id of MENU resource */
  315.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  316.         0,                    /* Refcon */
  317.         "Kind:"
  318. };
  319.  
  320. resource 'CNTL' (kPartInfoEditorCntl, purgeable) {
  321.         /*{128, 97, 144, kPartInfoDataItemRight-10},*/
  322.         {132, 75, 148, kPartInfoDataItemRight+22-20},
  323.         popupTitleBold+popupTitleRightJust,
  324.         visible,
  325.         47,                    /* width of title in pixels     */
  326.         kPartInfoEditorMenu,                /* resource id of MENU resource */
  327.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  328.         0,                    /* Refcon */
  329.         "Editor:"
  330. };
  331.  
  332. resource 'CNTL' (kPartInfoViewAsCntl, purgeable) {
  333.         /*{31, 90, 47, 237},*/
  334.         {35, 67, 51, 213},
  335.         popupTitleBold+popupTitleRightJust,
  336.         visible,
  337.         54,                    /* width of title in pixels     */
  338.         kPartInfoViewAsMenu,                /* resource id of MENU resource */
  339.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  340.         0,                    /* Refcon */
  341.         "View as:"
  342. };
  343.  
  344. data 'ppat' (kPartInfoDlgID, purgeable) {
  345.     $"0001 0000 001C 0000 004E 0000 0000 FFFF"
  346.     $"0000 0000 AA55 AA55 AA55 AA55 0000 0000"
  347.     $"8001 0000 0000 0008 0008 0000 0000 0000"
  348.     $"0000 0048 0000 0048 0000 0000 0001 0001"
  349.     $"0001 0000 0000 0000 0056 0000 0000 55AA"
  350.     $"55AA 55AA 55AA 0000 0000 0000 0001 0000"
  351.     $"7777 7777 7777 0001 8888 8888 8888"
  352. };
  353.  
  354. resource 'dctb' (kPartInfoDlgID, purgeable) {
  355.     0,
  356.     0,
  357.     {
  358.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  359.     }
  360. };
  361.  
  362. /* IM:MTEssentials 6-75: force DlgMgr to use color grafport.
  363.    Needed for color AppleGuide button icon. */
  364. data 'dctb' (kDocHeapDlgID, purgeable) {
  365.     $"0000 0000 0000 FFFF"
  366. };
  367.  
  368. data 'ictb' (kPartInfoDlgID, purgeable) 
  369. {
  370.     /* Item entries */
  371.  
  372.     /* offset      chng tabl     item */
  373.     /* ------      ---- ----     ---- */
  374.     /* +$0000 */ $"0000 0000" /* [1]  */
  375.                  $"0000 0000" /* [2]  */
  376.                  $"0000 0000" /* [3]  */
  377.                  $"0000 0000" /* [4]  */
  378.     /* +$0010 */ $"0000 0000" /* [5]  */
  379.                  $"0002 009C" /* [6]  */
  380.                  $"0000 0000" /* [7]  */
  381.                  $"0002 009C" /* [8]  */
  382.     /* +$0020 */ $"0000 0000" /* [9]  */
  383.                  $"0002 009C" /* [10] */
  384.                  $"0000 0000" /* [11] */
  385.                  $"0002 009C" /* [12] */
  386.     /* +$0030 */ $"0000 0000" /* [13] */
  387.                  $"0000 0000" /* [14] */
  388.                  $"0000 0000" /* [15] */
  389.                  $"0000 0000" /* [16] */
  390.     /* +$0040 */ $"0002 009C" /* [17] */
  391.                  $"0000 0000" /* [18] */
  392.                  $"0000 0000" /* [19] */
  393.                  $"0000 0000" /* [20] */
  394.     /* +$0050 */ $"0000 0000" /* [21] */
  395.                  $"0000 0000" /* [22] */
  396.                  $"0000 0000" /* [23] */
  397.                  $"0000 0000" /* [24] */
  398.     /* +$0060 */ $"0000 0000" /* [25] */
  399.                  $"0000 0000" /* [26] */
  400.                  $"0002 009C" /* [27] */
  401.                  $"0000 0000" /* [28] */
  402.     /* +$0070 */ $"0000 0000" /* [29] */
  403.                  $"0002 009C" /* [30] */
  404.                  $"0000 0000" /* [31] */
  405.                  $"0002 009C" /* [32] */
  406.     /* +$0080 */ $"0000 0000" /* [33] */
  407.                  $"0002 009C" /* [34] */
  408.                  $"0000 0000" /* [35] */
  409.                   $"0000 0000" /* [36] */
  410.     /* +$0090 */ $"0000 0000" /* [37] */
  411.                  $"0000 0000" /* [38] */
  412.                  $"0000 0000" /* [39] */
  413.     
  414.     /*                           ^^^^---- This column contains the dialog item number of   */
  415.     /*                                    each entry in this resource.                     */
  416.     /*                                                                                     */
  417.     /*                  ^^^^------------- This column contains offsets into this resource. */
  418.     /*                                    For instance, $009C means it points to the       */
  419.     /*                                    beginning of the table below (offset $9C)        */
  420.     /*                                                                                     */
  421.     /*             ^^^^------------------ This column tells which part(s) of the style     */
  422.     /*                                    table should be adhered to.                      */    
  423.     
  424.     /* If items are added to this dialog, you'll have to add those items to this resource  */
  425.     /* as well, and this will change the offset above from $A8 to some other value.  Make  */
  426.     /* sure this is changed in all of the above entries!                                   */
  427.     
  428.     
  429.     /* Text style record(s) */
  430.  
  431.     /* +$009C */ $"0000"            /* font         (ignored) */
  432.                  $"0100"            /* style = bold           */
  433.                  $"0000"            /* size         (ignored) */
  434.                  $"0000 0000 0000"    /* fore color   (ignored) */
  435.                  $"0000 0000 0000"    /* back color   (ignored) */
  436.                  $"0000"            /* mode         (ignored) */
  437.  
  438.     /* +$00B0 */    /* -- if you need more entries, add them here. */
  439. };
  440.  
  441. resource 'MENU' (kPartInfoKindMenu
  442. #If ODDebug
  443. , "Kind"
  444. #endif
  445. , nonpurgeable) {    // 'MENU' resources must not be purgeable [cc]
  446.     kPartInfoKindMenu,
  447.     textMenuProc,
  448.     allEnabled,
  449.     enabled,
  450.     "Kind",
  451.     {    /* array: 1 elements */
  452.         "Translate to…", noIcon, noKey, noMark, italic
  453.     }
  454. };
  455.  
  456. resource 'MENU' (kPartInfoEditorMenu
  457. #If ODDebug
  458. , "Editor"
  459. #endif
  460. , nonpurgeable) {
  461.     kPartInfoEditorMenu,
  462.     textMenuProc,
  463.     allEnabled,
  464.     enabled,
  465.     "Editor",
  466.     {    /* array: 0 elements */
  467.     }
  468. };
  469.  
  470. resource 'MENU' (kPartInfoViewAsMenu
  471. #If ODDebug
  472. , "View as"
  473. #endif
  474. , nonpurgeable) {
  475.     kPartInfoViewAsMenu,
  476.     textMenuProc,
  477.     allEnabled,
  478.     enabled,
  479.     "View as:",
  480.     {    /* array: 4 elements */
  481.         "Frame", noIcon, noKey, noMark, plain,
  482.         "Large Icon", noIcon, noKey, noMark, plain,
  483.         "Small Icon", noIcon, noKey, noMark, plain,
  484.         "Thumbnail", noIcon, noKey, noMark, plain
  485.     }
  486. };
  487.  
  488.  
  489. resource 'finf' (kPartInfoDlgID, purgeable) {
  490.     {
  491.         3,            /* Font Number, 3 = Geneva    */
  492.         plain,        /*         Font Style        */
  493.         10            /*         Font Size        */
  494.     }
  495. };
  496.  
  497. resource 'ALRT' (kPartInfoInvalidNameAlertID, purgeable /*<eeh> added for 1384356*/) {
  498.     {44, 25, 173, 441},
  499.     kPartInfoInvalidNameAlertID,
  500.     {    /* array: 4 elements */
  501.         /* [1] */
  502.         OK, visible, sound1,
  503.         /* [2] */
  504.         OK, visible, sound1,
  505.         /* [3] */
  506.         OK, visible, sound1,
  507.         /* [4] */
  508.         OK, visible, sound1
  509.     },
  510.     alertPositionParentWindowScreen
  511. };
  512.  
  513. resource 'DITL' (kPartInfoInvalidNameAlertID, purgeable /*<eeh> added for 1384356*/) {
  514.     {    /* array DITLarray: 3 elements */
  515.         /* [1] */
  516.         {99, 342, 119, 400},
  517.         Button {
  518.             enabled,
  519.             "OK"
  520.         },
  521.         /* [2] */
  522.         {10, 62, 90, 400},
  523.         StaticText {
  524.             disabled,
  525.             "The name cannot be used as a file name."
  526.         },
  527.         /* [3] */
  528.         {10, 20, 42, 52},
  529.         Icon {
  530.             disabled,
  531.             1
  532.         }
  533.     }
  534. };
  535.  
  536. resource 'ALRT' (kPartInfoLongCommentAlertID, purgeable /*<eeh> added for 1384356*/) {
  537.     {44, 25, 173, 441},
  538.     kPartInfoLongCommentAlertID,
  539.     {    /* array: 4 elements */
  540.         /* [1] */
  541.         OK, visible, sound1,
  542.         /* [2] */
  543.         OK, visible, sound1,
  544.         /* [3] */
  545.         OK, visible, sound1,
  546.         /* [4] */
  547.         OK, visible, sound1
  548.     },
  549.     alertPositionParentWindowScreen
  550. };
  551.  
  552. resource 'DITL' (kPartInfoLongCommentAlertID, purgeable /*<eeh> added for 1384356*/) {
  553.     {    /* array DITLarray: 3 elements */
  554.         /* [1] */
  555.         {99, 342, 119, 400},
  556.         Button {
  557.             enabled,
  558.             "OK"
  559.         },
  560.         /* [2] */
  561.         {10, 62, 90, 400},
  562.         StaticText {
  563.             disabled,
  564.             "The comment will be truncated."
  565.         },
  566.         /* [3] */
  567.         {10, 20, 42, 52},
  568.         Icon {
  569.             disabled,
  570.             1
  571.         }
  572.     }
  573. };
  574.  
  575. resource 'ALRT' (kPartInfoCannotChangeAlertID, purgeable ) {
  576.     {44, 25, 173, 441},
  577.     kPartInfoCannotChangeAlertID,
  578.     {    /* array: 4 elements */
  579.         /* [1] */
  580.         OK, visible, sound1,
  581.         /* [2] */
  582.         OK, visible, sound1,
  583.         /* [3] */
  584.         OK, visible, sound1,
  585.         /* [4] */
  586.         OK, visible, sound1
  587.     },
  588.     alertPositionParentWindowScreen
  589. };
  590.  
  591. resource 'DITL' (kPartInfoCannotChangeAlertID, purgeable ) {
  592.     {    /* array DITLarray: 3 elements */
  593.         /* [1] */
  594.         {99, 342, 119, 400},
  595.         Button {
  596.             enabled,
  597.             "OK"
  598.         },
  599.         /* [2] */
  600.         {10, 62, 90, 400},
  601.         StaticText {
  602.             disabled,
  603.             "The part editor for this part does not support changing to the kind “^0”."
  604.         },
  605.         /* [3] */
  606.         {10, 20, 42, 52},
  607.         Icon {
  608.             disabled,
  609.             1
  610.         }
  611.     }
  612. };
  613.  
  614. //-------------------------------------------------------------------------------------
  615. // Strings used by Link Info dialogs
  616. //-------------------------------------------------------------------------------------
  617.  
  618. resource 'STR ' (kODPartInfoSizeInBytes, purgeable) {
  619.     "^0 bytes on disk"
  620. };
  621.  
  622. resource 'STR ' (kODPartInfoSizeInK, purgeable) {
  623.     "^0K on disk"
  624. };
  625.  
  626. resource 'STR ' (kODPartInfoStrUnknownID, purgeable) {
  627.     "Unknown"
  628. };
  629.  
  630. resource 'STR ' (kODDocumentInfoWindowName, purgeable) {
  631.     "Document Info"
  632. };
  633.  
  634.  
  635. resource 'STR#' (kODInfoUtilStrsID, purgeable) {
  636.     {
  637.          "Unknown"
  638.         ;"None for this Kind"
  639.     }
  640. };
  641.  
  642. //-------------------------------------------------------------------------------------
  643. //   Document Heap Size dialog resources
  644. //-------------------------------------------------------------------------------------
  645.  
  646.  
  647.  
  648. resource 'DLOG' (kDocHeapDlgID, purgeable) {
  649.     {96, 80, 266, 422},
  650.     movableDBoxProc,
  651.     invisible,
  652.     noGoAway,
  653.     0x0,
  654.     kDocHeapDlgID,
  655.     "Memory Requirements",
  656.     alertPositionParentWindowScreen
  657. };
  658.  
  659. resource 'DITL' (kDocHeapDlgID, purgeable) {
  660.     {    /* array DITLarray: 13 elements */
  661.         /* [1] kDocHeapOKBtn */
  662.         {140, 271, 160, 329},
  663.         Button {
  664.             enabled,
  665.             "OK"
  666.         },
  667.         /* [2] kDocHeapCancelBtn */
  668.         {139, 200, 159, 258},
  669.         Button {
  670.             enabled,
  671.             "Cancel"
  672.         },
  673.         /* [3] kDocHeapDefaultSizeRadBtn */
  674.         {65, 20, 81, 237},
  675.         RadioButton {
  676.             enabled,
  677.             "Use OpenDoc Default Size:"
  678.         },
  679.         /* [4] kDocHeapDefaultSizeFld */
  680.         {65, 241, 81, 287},
  681.         StaticText {
  682.             enabled,
  683.             "256"
  684.         },
  685.         /* [5] kDocHeapDefaultSizeBotBtnRect */
  686.         {61+13, 317, 86, 332},
  687.         UserItem {
  688.             enabled
  689.         },
  690.         /* [6] kDocHeapPreferdSizeRadBtn */
  691.         {99, 20, 115, 238},
  692.         RadioButton {
  693.             enabled,
  694.             "Use Document Preferred Size:"
  695.         },
  696.         /* [7] kDocHeapPreferdSizeFld */
  697.         {99, 241, 115, 287},
  698.         StaticText {
  699.             enabled,
  700.             "1024"
  701.         },
  702.         /* [8] kDocHeapPreferdSizeBotBtnRect */
  703.         {95+13, 317, 120, 332},
  704.         UserItem {
  705.             enabled
  706.         },
  707.         /* [9] */
  708.         {20, 20, 36, 238},
  709.         StaticText {
  710.             disabled,
  711.             "Set Memory Requirements for:"
  712.         },
  713.         /* [10] kDocHeapDocumentNameFld */
  714.         {37, 20, 53, 236},
  715.         StaticText {
  716.             disabled,
  717.             ""
  718.         },
  719.         /* [11] */
  720.         {65, 292, 81, 304},
  721.         StaticText {
  722.             disabled,
  723.             "K"
  724.         },
  725.         /* [12] */
  726.         {99, 292, 115, 304},
  727.         StaticText {
  728.             disabled,
  729.             "K"
  730.         },
  731.         /* [13] kDocHeapDefaultSizeTopBtnRect */
  732.         {61, 317, 61+12, 332},
  733.         UserItem {
  734.             enabled
  735.         },
  736.         /* [14] kDocHeapDefaultSizeBtns */
  737.         {61, 317, 86, 332},
  738.         Picture {
  739.             disabled,
  740.             kArrowBtnsPictOffID
  741.         },
  742.         /* [15] kDocHeapPreferdSizeTopBtnRect */
  743.         {95, 317, 95+12, 332},
  744.         UserItem {
  745.             enabled
  746.         },
  747.         /* [16] kDocHeapPreferdSizeBtns */
  748.         {95, 317, 120, 332},
  749.         Picture {
  750.             disabled,
  751.             kArrowBtnsPictOffID
  752.         },
  753.         /* [17] */
  754.         {140, 36, 155, 51},
  755.         Picture {
  756.             disabled,
  757.             kPartInfoReadOnlyPictID
  758.         },
  759.         /* [18] */
  760.         {142, 53, 155, 109},
  761.         StaticText {
  762.             disabled,
  763.             "Read Only"
  764.         },
  765.         /* [19] */
  766.         {129, 10+kAGButtonWidth+10, 162, 195}            /* was {129, 14, 162, 195}*/,
  767.         StaticText {
  768.             disabled,
  769.             "Changes take effect when the document is reopened."
  770.         }
  771.         /* [20] */
  772. #ifdef _APPLEGUIDE_READY_
  773.         ,{140 + 2, 10, 140+2+16, 10+kAGButtonWidth},
  774.         Control {
  775.             enabled,
  776.             kAppleGuideButton
  777.         }
  778. #endif
  779.     }
  780. };
  781.  
  782. resource 'finf' (kDocHeapDlgID, "", purgeable) {
  783.     {
  784.         3,            /* Font Number, 3 = Geneva    */
  785.         plain,        /*         Font Style        */
  786.         10            /*         Font Size        */
  787.     }
  788. };
  789.  
  790. resource 'CNTL' (kArrowBtnsCntlID, purgeable) {
  791.     {100, 153, 112, 190},
  792.     0,
  793.     visible,
  794.     1,
  795.     0,
  796.     radioButProcUseWFont,
  797.     0,
  798.     "On"
  799. };
  800.  
  801. resource kPICTRsrcType (kArrowBtnsPictOffID, purgeable) {
  802.     109,
  803.     {0, 0, 25, 15},
  804.     $"1101 A000 8201 000A 0000 0000 02D0 0240"
  805.     $"9000 0200 0000 0000 1900 1000 0000 0000"
  806.     $"1900 0F00 0000 0000 1900 0F00 003F F840"
  807.     $"0480 0281 0282 8284 4288 229C 7284 4284"
  808.     $"4287 C280 0280 0280 0287 C284 4284 429C"
  809.     $"7288 2284 4282 8281 0280 0240 043F F8A0"
  810.     $"0083 FF"
  811. };
  812.  
  813. resource kPICTRsrcType (kArrowBtnsPictTopOnID, purgeable) {
  814.     109,
  815.     {0, 0, 25, 15},
  816.     $"1101 A000 8201 000A 0000 0000 02D0 0240"
  817.     $"9000 0200 0000 0000 1900 1000 0000 0000"
  818.     $"1900 0F00 0000 0000 1900 0F00 003F F840"
  819.     $"0480 0281 0283 8287 C28F E29F F287 C287"
  820.     $"C287 C280 0280 0280 0287 C284 4284 429C"
  821.     $"7288 2284 4282 8281 0280 0240 043F F8A0"
  822.     $"0083 FF"
  823. };
  824.  
  825. resource kPICTRsrcType (kArrowBtnsPictBotOnID, purgeable) {
  826.     109,
  827.     {0, 0, 25, 15},
  828.     $"1101 A000 8201 000A 0000 0000 02D0 0240"
  829.     $"9000 0200 0000 0000 1900 1000 0000 0000"
  830.     $"1900 0F00 0000 0000 1900 0F00 003F F840"
  831.     $"0480 0281 0282 8284 4288 229C 7284 4284"
  832.     $"4287 C280 0280 0280 0287 C287 C287 C29F"
  833.     $"F28F E287 C283 8281 0280 0240 043F F8A0"
  834.     $"0083 FF"
  835. };
  836.  
  837. resource 'PICT' (kPartInfoReadOnlyPictID, purgeable) {
  838.     276,
  839.     {0, 0, 15, 15},
  840.     $"1101 A030 39A0 0082 0100 0A00 0000 0003"
  841.     $"6604 8091 0002 0000 0000 000F 0010 0000"
  842.     $"0000 000F 000F 0000 0000 000F 000F 0000"
  843.     $"00B8 0000 0000 000F 000F 0000 0001 0002"
  844.     $"7FFF 0001 0001 0003 7FFF 0002 0002 0004"
  845.     $"0009 000C 7FFF 0003 0003 0005 0008 0009"
  846.     $"000C 000D 7FFF 0004 0004 0006 7FFF 0005"
  847.     $"0005 0008 7FFF 0006 0006 0007 000C 000D"
  848.     $"7FFF 0007 0006 0007 7FFF 0008 000B 000C"
  849.     $"7FFF 0009 0005 0006 7FFF 000A 000A 000C"
  850.     $"7FFF 000B 0009 000A 000B 000D 7FFF 000C"
  851.     $"0008 0009 000C 000E 7FFF 000D 0007 0008"
  852.     $"000D 000F 7FFF 000E 0000 0001 0002 0005"
  853.     $"0006 0007 000E 000F 7FFF 000F 0000 0001"
  854.     $"0002 0006 7FFF 7FFF 4000 2000 1070 0888"
  855.     $"04C8 0338 0110 0290 0261 0420 0450 0788"
  856.     $"0704 0602 BC00 A000 83FF"
  857. };
  858.  
  859.